package com.zqweb.gulimall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

// 由于没有使用到数据源配置，手动排除数据源的自动配置，不然会报找不到数据源的错误
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient // 开启服务发现与注册
public class Gateway_MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(Gateway_MainApplication.class,args);
    }
}
